import Vue from 'vue'
import Router from 'vue-router'
import home from '../pages/home'
import friend from '../pages/friend'
import myMusic from '../pages/myMusic'
import user from '../pages/user'
Vue.use(Router)

var router = new Router({
  routes: [
    {
      path: '/home',
      component: home
    }, {
      path: '/friend',
      component: friend
    }, {
      path: '/myMusic',
      component: myMusic
    }, {
      path: '/user',
      component: user
    },
  ]
});

router.push("/home");

export default router;
